#include "query.h"
#include "command.h"

using namespace std;

void program(vector<string>& input)
{
	/***********************************************
	 For testing purposes this will output whats in
	 the vector "lines"
	************************************************/
	for(int i=0; i<input.size(); i++)
	{
		cout << "input[" << i << "] = " << input[i] << endl;
	}

	if(command(input))
	{
		cout << "COMMAND WORKED" << endl;
	}
	else if(query(input))
	{
		cout << "QUERY WORKED" << endl;
	}
	else	// command and query both failed
	{
		cout << "DIDN'T WORK" << endl;
	}
}